package cn.edu.ujn.lab3.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.ujn.lab3.dao.Customer;

public interface CustomerMapper {
    int deleteByPrimaryKey(Integer custId);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer custId);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);
    
    List<Customer> selectCustomerList(Customer customer);
    
    int selectCustomerListCount(Customer customer);
    
    int createCustomer(Customer customer);
    
    public int updateCustomer(Customer customer);
    
    Customer getCustomerById(@Param("id")Integer id);
    
    int deleteCustomer(@Param("id")int id);
}